@echo off

set DIR=%~dp0
:: set ROOT=%DIR%

:: 递归遍历源文件夹及子文件夹
@REM del /f /s /q %~dp0\..\s_code\*.*
@REM robocopy  %~dp0 %~dp0..\s_code /MIR /XF *.py Kconfig *.log *.bat *.c *.old defconfig
@REM robocopy  %~dp0 %~dp0..\s_code /S /PURGE /XF *.py Kconfig *.log *.bat *.c *.old defconfig /XD src
robocopy  %~dp0 %~dp0..\s_code *.h .config /S /PURGE /XD src
pause